package com.qf.erp_system_admin.service.impl;

import com.qf.erp_system_admin.entity.Client;
import com.qf.erp_system_admin.entity.ClientVo;
import com.qf.erp_system_admin.mapper.ClientMapper;
import com.qf.erp_system_admin.service.ClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;


@Service
public class ClientServiceimpl implements ClientService {
    @Autowired
    private ClientMapper clientMapper;


    @Override
    public List<Client> findAll(HashMap<String, String> map) {
        return clientMapper.findAll(map);
    }

    @Override
    public boolean del(int cliId) {
        return clientMapper.del(cliId);
    }

    @Override
    public boolean delBatch(List<Integer> ids) {
        return clientMapper.delBatch(ids);
    }

    @Override
    public boolean add(Client client) {
        return clientMapper.add(client);
    }

    @Override
    public boolean up(Client client) {
        return clientMapper.up(client) ;
    }

    @Override
    public List<String> findjs() {
        return clientMapper.findjs();
    }

    @Override
    public List<String> findywy() {
        return clientMapper.findywy();
    }

    @Override
    public List<String> find3() {
        return clientMapper.find3();
    }

    @Override
    public void saveBatch(ArrayList<Client> list) {
        clientMapper.saveBatch(list);
     }

    @Override
    public List<Client> findAll1(Object o) {
        return clientMapper.findAll1(null);
    }


}
